import Cookies from 'js-cookie'
const baseStr = process.env.VUE_APP_TOKEN_KEY

export function getToken() {
  return localStorage.getItem(`${baseStr}_token`)
}

export function setToken(token) {
  return localStorage.setItem(`${baseStr}_token`, token)
}

export function removeToken() {
  return localStorage.removeItem(`${baseStr}_token`)
}

export function setOtherCookie(key,val){
  return localStorage.setItem(`${baseStr}_${key}`,val)
}
export function getOtherCookie(key){
  return localStorage.getItem(`${baseStr}_${key}`)
}
export function removeOtherCookie(key){
  return localStorage.removeItem(`${baseStr}_${key}`)
}
